@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <div class="row">
                <div class="col-sm-6 b-r">
                            <#input id="id" name="编号" value="${item.id}" underline="true"/>
                            <#input id="goodsName" name="书刊名" value="${item.goodsName}" />
                </div>

                <div class="col-sm-6">
                            <#input id="yu" name="总数" value="${item.goodsSum}" />
                              <#input id="join" name="入库数量"  />
                                   <#input id="goodsSum" name="现有数量" />
                            
                          
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="StorehouseInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="StorehouseInfoDlg.close()"/>
                      <#button btnCss="info3" name="入库" id="ensure2" icon="fa-check" clickFun="join()"/>
                      
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/cangku/storehouse/storehouse_info.js"></script>

<script type="text/javascript">
function join(){
	var n=document.getElementById('join').value;
	var v=${item.goodsSum};
	v += parseInt(n, 10);
	document.getElementById('goodsSum').value =v;
	var value ="你确定要入库" +document.getElementById('join').value + "个商品";
	alert(value);
}
</script>

@}